REM --> Start
REM --> Batch file config.
@ECHO OFF

set spacer=______________________________________________________________________________

REM --> Main menu.
:Home
cls
color 17
echo %spacer%
echo $$$$$$$$$$$$    $$$$     $$$$    $$$$    .$$$$$$$$^|
echo     $$$$        $$$$     $$$$    $$$$    .$$F    $$^|
echo     $$$$        $$$$     $$$$    $$$$    .$$F    $$^|
echo     $$$$        $$$$$$$$$$$$$    $$$$    .$$$$$$$$^|
echo     $$$$        $$$$     $$$$    $$$$    .$$F    $$^|
echo     $$$$        $$$$     $$$$    $$$$    .$$F    $$^|
echo     $$$$        $$$$     $$$$    $$$$    .$$$$$$$$^|
echo %spacer%
echo Welcome to the Minecraft launcher.
echo.
echo This launcher was brought to you by ThibmoRozier.
echo %spacer%
echo Select one of the options below:
echo.
echo "Play"		Start the game.
echo "Version" 	Check your client version.
echo "About" 	About this launcher.
echo "Exit"		Close the launcher.
echo.
SET /P ANSWER= You choose: 
echo You chose: %ANSWER%
if /i {%ANSWER%}=={Play} (goto :Play)
if /i {%ANSWER%}=={Version} (goto :Version)
if /i {%ANSWER%}=={About} (goto :About)
if /i {%ANSWER%}=={Exit} (goto :Exit)

REM --> Main menu options.
:Play
cls
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\MinecraftSP.jar goto :Start1
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\minecraft.jar goto :Start2
goto :ErrorG
pause

:version
cls
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\spout.txt goto :Spout
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\1.0.txt goto :1.0i
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\1.1.txt goto :1.1i
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\1.2.txt goto :1.2i
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\1.3.txt goto :1.3i
if exist C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\1.3.2.txt goto :1.3.2i
goto :ErrorV
pause

:About
cls
color 17
echo %spacer%
echo    This launcher was brought to you by ThibmoRozier.
echo.
echo    For questions and buggs please contact me on my email:
echo    "thibmorozier@live.nl"
echo %spacer%
pause
goto :Home

:Exit
cls
color 17
echo %spacer%
echo Thank you for using this launcher.
echo.
echo Please share this file to who ever you want.
echo.
echo Credits for the origional game files all go to the Minecraft team.
echo %spacer%
pause
exit

REM --> Game start executors.
:Start1
color 20
echo Starting the game now...
Start C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\MinecraftSP.jar
goto :Exit

:Start2
color 20
echo Starting the game now...
Start C:\Users\%USERNAME%\AppData\Roaming\.minecraft\bin\minecraft.jar
goto :Exit

REM --> Version screens.
:Spout
color 20
echo %spacer%
echo You have the Spout version of Minecraft.
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home

:1.0i
color 20
echo %spacer%
echo You have Minecraft version 1.0
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home

:1.1i
color 20
echo %spacer%
echo You have Minecraft version 1.1
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home 

:1.2i
color 20
echo %spacer%
echo You have Minecraft version 1.2
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home

:1.3i
color 20
echo %spacer%
echo You have Minecraft version 1.3
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home

:1.3.2i
color 20
echo %spacer%
echo You have Minecraft version 1.3.2
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home

REM --> Error screens.
REM --> Error Game file.
:ErrorG
color 40
echo 4572726F7220636F6465202D3230302D >C:\users\%USERNAME%\Desktop\error.txt
echo. >>C:\users\%USERNAME%\Desktop\error.txt
echo Please send this file to: thibmorozier@live.nl >>C:\users\%USERNAME%\Desktop\error.txt
echo. >>C:\users\%USERNAME%\Desktop\error.txt
echo Thanks for your co-operation. >>C:\users\%USERNAME%\Desktop\error.txt
echo %spacer%
echo Game file not found!
echo Error code 200
echo.
echo An error file has been saved to your desktop,
echo please send this file to thibmorozier@live.nl
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home

REM --> Error Version file.
:ErrorV
color 40
echo 4572726F7220636F6465202D3230352D >C:\users\%USERNAME%\Desktop\error.txt
echo. >>C:\users\%USERNAME%\Desktop\error.txt
echo Please send this file to: thibmorozier@live.nl >>C:\users\%USERNAME%\Desktop\error.txt
echo. >>C:\users\%USERNAME%\Desktop\error.txt
echo Thanks for your co-operation. >>C:\users\%USERNAME%\Desktop\error.txt
echo %spacer%
echo Version file not found!
echo Error code 205
echo.
echo An error file has been saved to your desktop,
echo please send this file to thibmorozier@live.nl
echo.
echo Moving back to the menu.
echo %spacer%
pause
goto :Home
REM --> End.